﻿<?php
require_once(dirname(__FILE__)."/../../libs/login/login.php");  
require_once(dirname(__FILE__)."/../../libs/string/libstr.php");
require_once(dirname(__FILE__)."/../../admin/libs/shuxing_class.php");
$lg=new login();
$lg->checklogin("admin_member");//检验是否登录
$mc=new libstr();
$sx=new shuxing();
//权限角色

$getrs=$sx->getshuxingtype(0);

$path="自定义属性列表";

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script type="text/javascript" src="../js/jquery.js"></script>
<link href="../css/css.css" rel="stylesheet" type="text/css" />
</head>
<body style="background:#fff"> 

<div class="content">
    <div class="right">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    	<tr>
        <td width="100%" height="24" class="top_head">&nbsp;</td>
      </tr>
      <tr>
        <td valign="top">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="1%" align="right"  height="45">&nbsp;</td>
                <td width="99%" >
                 <table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="55%" style="padding-left:20px;padding-top:10px;"><img src="../images/head.gif" width="13" height="11"><b><?php echo $path;?></b><a href="shuxing_defined.php" style=" margin-left:20px; text-decoration:underline;">添加新属性</a></td>
                    <td width="45%" align="right">&nbsp;</td>
                  </tr>
                </table>
                </td>
              </tr>
            </table>
        </td>
      </tr>
       <tr>
            <td valign="middle" align="center" >
            	<table width="92%"   border="1px" bordercolor="#ccc" cellspacing="0px" style="border-collapse:collapse">
                  <thead align="center" bgcolor="#EEEEEE">
                    <tr>
                	<th height="30"  align="center" >分类</th>
                	 <th width="25%" align="center"><strong>字段名</strong></th>
                	  <th width="10%"  align="center"><strong>是否可见</strong></th>
                    <th width="10%"  align="center"><strong>排序</strong></th>
                    <th width="25%" align="center">编辑</th>
                </tr>
              </thead>
              <tbody>
              <?php foreach($getrs as $rs){?>
              	<tr>
                	<td width="20%" height="28" align="center"><?php echo $rs["classname"]?></td>
                	<td width="20%" height="28" align="center" colspan="-4"><?php echo $rs["ziduan"]?></td>
                	<td width="10%" height="28" align="center" colspan="-4"><?php if($rs["isshow"]==1) {?>可见<?php } else{?>隐藏<?php }?></td>
                    <td height="28" align="center"><input name="classorder<?php echo  $rs["classorder"];?>" value="<?php echo $rs["classorder"];?>" style="border:1px solid #ccc; width:20px; text-align:center"></td>
                    <td height="28" align="center">
                      <bdo><input type="submit" name="button2" id="button2" value="修改" onclick="location.href='shuxing_defined_edit.php?id=<?php echo $rs["id"];?>'"/></bdo>
                  
                    </bdo></td>
                </tr>
     <?php }?>
              </tbody>
        </table>
        </td>
      </tr>
    </table>
    
    </div>
</div>
</body>
</html>